﻿#ifndef _MSGSTRUCT_H_
#define _MSGSTRUCT_H_

#include "../frame/CMsg.h"

#ifdef __cplusplus
extern "C" {
#endif

#pragma pack(push, 1)
typedef struct {
	CMsg msg;
	unsigned int user_id;
} USER_ID_MSG_COMMON;

typedef struct {
	CMsg msg;
	void** ptr;
} ST_MSG_COMMON;

typedef ST_MSG_COMMON ST_START_UART_RECV;
typedef ST_MSG_COMMON ST_START_UART_SEND;

#define UART_SEND_REQ_RAW	(1)
#define UART_SEND_REQ_FRAME	(2)
typedef struct {
	CMsg msg;
	int req_type;
	int send_data_len;
	char send_data[1];
} ST_UART_SEND_REQ;

typedef struct {
	CMsg msg;
	char recv_1c;
} ST_UART_RECV_1BYTE;


#pragma pack(pop)
#ifdef __cplusplus
}
#endif
#endif
